package aaa.brush.mapper;

import aaa.brush.domain.QuestionBank;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper

public interface QuestionBankMapper {
    QuestionBank findByQuestionTypeAndQuestionIdJava(@Param("questionType") String questionType, @Param("questionJava") int questionJava);
    QuestionBank findByQuestionTypeAndQuestionIdC(@Param("questionType") String questionType, @Param("questionC") int questionC);
    QuestionBank findByQuestionTypeAndQuestionIdComputer(@Param("questionType") String questionType, @Param("questionComputer") int questionComputer);
    int findMaxJavaQuestionNumByQuestionType(@Param("questionType") String questionType);
    int findMaxCQuestionNumByQuestionType(@Param("questionType") String questionType);
    int findMaxComputerQuestionNumByQuestionType(@Param("questionType") String questionType);


    int findJavaIdByQuestionId(@Param("maxQuestionId") Integer maxQuestionId);

    int findCIdByQuestionId(@Param("maxQuestionId") Integer maxQuestionId);

    int findComputerIdByQuestionId(@Param("maxQuestionId") Integer maxQuestionId);
}